#include "character/charactermanager.h"


CharacterManager::CharacterManager()
{
}

CharacterManager::~CharacterManager()
{
}

Character *CharacterManager::newCharacter( netlib::session::Session *session , char *userID )
{
	Character *character = m_characterPool.pop();

	character->initialize();

	session->setPlayer( character );
	character->setUserID( userID );

	m_characterList.insert( userID, character );

	return ( character );

}